<template>
  <div>
    <h1>基础</h1>
    <button @click="this.value++">已点击{{this.value}}次数</button>
  </div>
</template>

<script>
export default {
  name: "Basic",
  data() {
    return {
      value: 0
    }
  },
  mounted() {
    console.log( '挂载Basic组件');
  },
  unmounted() {
    console.log( '卸载Basic组件');
  }
};
</script>
